﻿<!-- "script/apps/Aries/Creator/Game/Tasks/TransformWnd.html" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
<pe:mcml>
<script refresh="true" type="text/npl" src="TransformWnd.lua"><![CDATA[
TransformWnd = commonlib.gettable("MyCompany.Aries.Game.Tasks.TransformWnd")
TransformWnd.OnInit()

function ClosePage()
    Page:CloseWindow();
end


]]></script>
<style type="text/mcss">
{
    btn_sub ={
        float="left", width = 8, height=10, ["margin-top"] = 3, ["margin-left"] = 3, background = "Texture/Aries/Creator/Theme/GameCommonIcon_32bits.png#484 203 8 10"
    },
    btn_add = {
        float ="left", width = 10, height=10, ["margin-top"] = 3, ["margin-left"] = 3, background = "Texture/Aries/Creator/Theme/GameCommonIcon_32bits.png#501 203 10 10"
    },
    text_field = {
        float ="left", width = 40, height=18, ["margin-left"] = 3
    },
}
</style>
<div style="padding-left:6px;padding-right:6px;padding-bottom:7px" class="mc_panel">
    <div style="margin-top:10px;color:#ffffff">
        <div><input type="radio" uiname="TransformWnd.no_clone" checked="true" style="margin:2px" name="method" id="no_clone" value="no_clone"/><div uiname="TransformWnd.no_clone_for" style="float:left;" for="no_clone"><%=L"不复制"%></div></div>
        <div><input type="radio" uiname="TransformWnd.clone" style="margin:2px" name="method" id="clone" value="clone"/><div style="float:left;" uiname="TransformWnd.clone_for" for="clone"><%=L"复制"%></div></div>
        <div><input type="radio" uiname="TransformWnd.extrude" style="margin:2px" name="method" id="extrude" value="extrude" /><div style="float:left;" uiname="TransformWnd.extrude_for" for="extrude"><%=L"拉伸"%></div></div>
    </div>
    <div style="margin-top:10px;">
        <input type="button" style="float:left;margin-top:-3px;color:#ff0000" value="X" enabled="false" class="mc_light_grey_button_with_fillet"/>
        <input type="button" class="btn_sub"  uiname="TransformWnd.btn_sub_x" name="btn_sub_x" onclick="TransformWnd.ChangeCoordinate"/>
        <input type="text" text="0" spacing="0" onchange="TransformWnd.OnUIValueChanged" uiname="TransformWnd.text_pos_x" name="text_pos_x" class="mc_text text_field"/>
        <input type="button" class="btn_add"  uiname="TransformWnd.btn_add_x" name="btn_add_x" onclick="TransformWnd.ChangeCoordinate"/>
    </div>
    <div style="margin-top:10px;">
        <input type="button" style="float:left;margin-top:-3px;color:#645efb" value="Y" enabled="false" class="mc_light_grey_button_with_fillet"/>
        <input type="button"class="btn_sub"  uiname="TransformWnd.btn_sub_y" name="btn_sub_y" onclick="TransformWnd.ChangeCoordinate"/>
        <input type="text" text="0" spacing="0" onchange="TransformWnd.OnUIValueChanged" uiname="TransformWnd.text_pos_y" name="text_pos_y" class="mc_text text_field"/>
        <input type="button" class="btn_add"  uiname="TransformWnd.btn_add_y" name="btn_add_y" onclick="TransformWnd.ChangeCoordinate"/>
    </div>
    <div style="margin-top:10px;">
        <input type="button" style="float:left;margin-top:-3px;color:#00ff00" value="Z" enabled="false" class="mc_light_grey_button_with_fillet"/>
        <input type="button" class="btn_sub"  uiname="TransformWnd.btn_sub_z" name="btn_sub_z" onclick="TransformWnd.ChangeCoordinate"/>
        <input type="text" text="0" spacing="0" onchange="TransformWnd.OnUIValueChanged" uiname="TransformWnd.text_pos_z" name="text_pos_z" class="mc_text text_field"/>
        <input type="button" class="btn_add"  uiname="TransformWnd.btn_add_z" name="btn_add_z" onclick="TransformWnd.ChangeCoordinate"/>
    </div>
    <div style="margin-top:10px;">
        <span style="color:#0afafa"><%=L"放缩"%></span>
        <input type="button" class="btn_sub" style="margin-top:5px;" uiname="TransformWnd.btn_sub_scaling" name="btn_sub_scaling" onclick="TransformWnd.ChangeCoordinate"/>
        <input type="button" class="btn_add" style="margin-top:5px;" uiname="TransformWnd.btn_add_scaling" name="btn_add_scaling" onclick="TransformWnd.ChangeCoordinate"/><br />
        <input type="text" text="1,1,1" spacing="0" style="width:80px;" uiname="TransformWnd.text_scaling" name="text_scaling" class="mc_text text_field"/>
    </div>
    <div style="margin-top:10px;">
        <div style="float:left;color:#0066ff;min-width:30px;"><%=L"旋转"%></div>
        <select name="axis" uiname="TransformWnd.axis"  AllowUserEdit="false" style="width:40px;height:22px;" >
            <option value="x">X</option>
            <option selected="selected" value="y">Y</option>
            <option value="z">Z</option>
        </select><br/>
        <input type="button" class="btn_sub" style="margin-left:20px;" uiname="TransformWnd.btn_sub_axis" name="btn_sub_axis" onclick="TransformWnd.ChangeRotation" />
        <input type="text" text="0" spacing="0" onchange="TransformWnd.OnUIValueChanged" uiname="TransformWnd.text_rot" name="text_rot" class="mc_text text_field" />
        <input type="button" class="btn_add" uiname="TransformWnd.btn_add_axis" name="btn_add_axis" onclick="TransformWnd.ChangeRotation" />
    </div>
    <div style="margin-top:5px;">
        <input type="button" uiname="TransformWnd.OK" style="" value='<%=L"确定"%>' tooltip='<%=L"Ctrl+C复制,Ctrl+X剪切,Ctrl+V粘贴"%>' onclick="TransformWnd.TransformSelection" class="mc_light_grey_button_with_fillet"/>
        <input type="button" uiname="TransformWnd.Close" style="margin-left:8px;" value='<%=L"取消"%>' onclick = "ClosePage" class="mc_light_grey_button_with_fillet"/>
    </div>
</div>
</pe:mcml> 
</body>
</html>

